﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace ToDict
{
    public partial class StringExt
    {
        internal IEnumerable<Messages.Setting> SplitIntoSettings( Messages.Config config) {
            var settings = config.Value.Split(new [] {';'}, StringSplitOptions.RemoveEmptyEntries).Select(s => new Messages.Setting { Value = s }).ToList();
            return settings;
        }
  
    }
}